<html>
<head><meta charset="utf-8"><title>More `unused_must_use` expressions · t-lang · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/index.html">t-lang</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/More.20.60unused_must_use.60.20expressions.html">More `unused_must_use` expressions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="211077801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/More%20%60unused_must_use%60%20expressions/near/211077801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/More.20.60unused_must_use.60.20expressions.html#211077801">(Sep 24 2020 at 00:27)</a>:</h4>
<p><del>Assuming that <a href="https://github.com/rust-lang/rust/issues/76894"><a href="https://github.com/rust-lang/rust/issues/76894">#76894</a></a> gets approved, want to make one for unused closures too, ecstatic-morse?  Looks like</del></p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="kd">let</span><span class="w"> </span><span class="n">is_potentially_a_dog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_a_tail</span><span class="p">(</span><span class="n">trex</span><span class="p">)</span><span class="w"></span>
<span class="w">  </span><span class="o">||</span><span class="w"> </span><span class="n">has_bad_breath</span><span class="p">(</span><span class="n">trex</span><span class="p">)</span><span class="w"></span>
<span class="w">  </span><span class="o">||</span><span class="w"> </span><span class="n">is_a_carnivore</span><span class="p">(</span><span class="n">trex</span><span class="p">);</span><span class="w"> </span><span class="c1">// Misplaced semi-colon (perhaps due to reordering of lines)</span>
<span class="w">  </span><span class="o">||</span><span class="w"> </span><span class="n">is_adorable</span><span class="p">(</span><span class="n">trex</span><span class="p">);</span><span class="w"></span>
</code></pre></div>

<p><del><a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=3afcb13734f1a5da070905c23b8a1d74">also doesn't warn today</a>.</del><br>
Ignore me, I should test on nightly -- is there a way to delete topics? <span aria-label="sweat" class="emoji emoji-1f613" role="img" title="sweat">:sweat:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>